home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.33 (October) / PC Gamer Disc 7.33 (October 2003).ISO / Data / items.pcg / scripts / DefineSprite_137 / frame_2 / DoAction.as
Text File  |  2003-07-17  |  400b  |  8 lines

  1. var thepercent = (_parent.theBox1._y - 224) / 160;
  2. var theCeil = Math.ceil(_parent.num_Demos / _parent.scrollMax);
  3. if(thepercent >= 1)
  4. {
  5.    theCeil = int(_parent.num_Demos / _parent.scrollMax);
  6. }
  7. _parent.scrollListBox("menudemo","demoname","demonumber",_parent.num_Items,_parent.topDemo,"topDemo",int(theCeil * thepercent),"demoCount",_parent.currentDemoCount,_parent.theBox1._y,"DemoBox_y");
  8.